﻿using System.Runtime.Serialization;

namespace Hibiku.Twitter
{
    [DataContract]
    public class TokenPair
    {
        [DataMember]
        public string Token
        {
            get;
            private set;
        }

        [DataMember]
        public string Secret
        {
            get;
            private set;
        }

        public bool IsValid
        {
            get
            {
                return (!string.IsNullOrEmpty(Token) && !string.IsNullOrEmpty(Secret));
            }
        }

        public TokenPair(string token, string secret)
        {
            Token = token;
            Secret = secret;
        }
    }
}
